Directorist\Rest_Api\Controllers\Version1\Plans_Controller B

Total Complexity 94
Dependencies 4
Dependents 1
Total lines 895
Lines of code 704
Logical lines of code 259
Comment lines 97
Methods 22
Properties 2

Methods 22

Method Rating Maintainability Complexity Lines of code
get_plan_data()
D
31 35 105
get_item_schema()
A
27
1 227
get_fields_data()
A
41 12 55
get_features_data()
A
36 6 89
get_items()
S
47 6 35
prepare_objects_query()
S
56 4 18
get_item()
S
58 4 13
get_collection_params()
S
52 2 26
register_routes()
S
48 1 40
get_plans()
S
57 2 16
get_tax_type()
S
67 3 7
get_plan_type()
S
67 3 7
get_validity_period_label()
S
58 2 14
get_items_permissions_check()
S
69 2 6
get_item_permissions_check()
S
69 2 6
prepare_item_for_response()
S
62 2 10
get_validity_period_unit()
S
73 2 4
prepare_links()
S
63 1 11
add_post_meta_fields()
S
82 1 3
get_directory_id()
S
78 1 3
is_ignorable_field()
S
78 1 3
get_orderby_possibles()
S
72 1 6